package com.chaosj.platform.wx;

import com.chaosj.memory.CmdParserHandler;
import com.chaosj.memory.ScrapeApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.shell.SpringShellAutoConfiguration;
import org.springframework.shell.jline.JLineShellAutoConfiguration;
import org.springframework.shell.standard.StandardAPIAutoConfiguration;
import org.springframework.shell.standard.commands.StandardCommandsAutoConfiguration;

/**
 * micro service模板服务
 *
 */
@SpringBootApplication(exclude = {SpringShellAutoConfiguration.class, JLineShellAutoConfiguration.class, StandardAPIAutoConfiguration.class, StandardCommandsAutoConfiguration.class})
@ComponentScan(value = {"cn.hutool.extra.spring","com.chaosj"})
@EnableCaching
public class WxPlatformApp {

    public static void main(String[] args) {
        SpringApplication.run(WxPlatformApp.class);
    }

    @Bean
    public CmdParserHandler cmdParserHandler(){
        return new CmdParserHandler();
    }
}
